﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BO.Admin;
using System.Data;
using BAL;

namespace ProjectQuaDep.Services
{
    public partial class UpdateVote_Hung : System.Web.UI.Page
    {
        protected string kq = "0";
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string id = Request.QueryString["id"].ToString();
                //check vong bao nhieu
                //DataTable dt = BO.Admin.ImagesBO.GetInfomationImagesBO(id);
                //if (dt.Rows.Count > 0)
                //{
                //    string Round = dt.Rows[0][BO.Const.tbImages.RoundAwards].ToString();
                //    //check xem vong do con chay. khong
                //    DataTable dtRound = BO.Admin.ImagesBO.GetInfomationRoundByRoundAwardsBO(Round);
                //    if (dtRound.Rows.Count > 0)
                //    {
                kq = BussinessHelpers.UpdateVote(Convert.ToInt32(id)).ToString();
                //    }
                //    else
                //    {
                //        kq = "-1";
                //    }
                //}

            }
            catch (Exception)
            {
                kq = "0";
            }


        }
    }
}